package com.princess.demok.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.princess.demok.R
import com.princess.demok.common.MainModel
import kotlinx.android.synthetic.main.item_main.view.*

/**
 * @author: xha
 * @date: 2020/10/22 15:18
 * @Description:小功能
 */
class MainMvvmAdapter : BaseQuickAdapter<MainModel, BaseViewHolder>(R.layout.item_main) {
    override fun convert(holder: BaseViewHolder, item: MainModel) {
        holder.itemView.tvNameMain.text = item.name
    }

}